#login {
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center; /* 添加居中对齐 */
}

#login h2 {
    margin-bottom: 20px; /* 添加标题与表单之间的间距 */
}

#loginForm label {
    display: block;
    margin-bottom: 5px;
    text-align: left; /* 标签文本左对齐 */
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
    width: calc(100% - 22px); /* 减去内边距 */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#loginForm input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* 使提交按钮宽度与输入框一致 */
}

#loginForm input[type="submit"]:hover {
    background-color: #0056b3;
}

/* 忘记密码和注册链接的样式 */
#login a {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

#login a:hover {
    text-decoration: underline;
}